import server from "@/utils/request";

export const user_login = (params)=>{
    return server({
        method:'post',
        url:'/login',
        data:params
    })
}

export const get_user_info = ()=>{
    return server({
        method:'get',
        url:'/me'
    })
}

export const get_capt_code = (params)=>{
    return server({
        method:'post',
        url:'/login/send_auth_code',
        data:params
    })
}

export const get_config = (params)=>{
    return server({
        method:'get',
        url:'/user/personalized/config',
        params:params
    })
}